﻿using Terraria.GameContent.Creative;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria;
using EAS.Common.Players;

namespace EAS.Content.Items
{
    public class VinesGloves : ModItem
    {
        public override void SetDefaults()
        {
            Item.width = 20;
            Item.height = 28;
            Item.accessory = true;
            Item.value = Item.sellPrice(gold: 15);
            Item.rare = ItemRarityID.Pink;
        }
        public override void SetStaticDefaults()
        {
            CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
        }
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            player.GetModPlayer<AccPlayer>().VinesGloves = true;
        }
        public override void AddRecipes()
        {
            Recipe modRecipe = Recipe.Create(Type, 1);
            modRecipe.AddIngredient(ItemID.Stinger, 13);
            modRecipe.AddIngredient(ItemID.Vine, 15);
            modRecipe.AddIngredient(ItemID.JungleSpores, 10);
            modRecipe.AddIngredient(ItemID.PowerGlove, 1);
            modRecipe.AddTile(TileID.TinkerersWorkbench);
            modRecipe.Register();
        }
    }
}
